import request from '@/utils/request'

// 查询供应商列表
export function listWySupplier(query) {
  return request({
    url: '/park/wySupplier/list',
    method: 'get',
    params: query
  })
}

// 查询供应商详细
export function getWySupplier(id) {
  return request({
    url: '/park/wySupplier/' + id,
    method: 'get'
  })
}

// 新增供应商
export function addWySupplier(data) {
  return request({
    url: '/park/wySupplier',
    method: 'post',
    data: data
  })
}

// 修改供应商
export function updateWySupplier(data) {
  return request({
    url: '/park/wySupplier',
    method: 'put',
    data: data
  })
}

// 删除供应商
export function delWySupplier(id) {
  return request({
    url: '/park/wySupplier/' + id,
    method: 'delete'
  })
}
